<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
  <head>
    <title>登录</title>
    <link rel="icon" href="/dir/favicon.ico" type="image/x-icon">
	<link rel="shortcut icon" href="/dir/favicon.ico" type="image/x-icon">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<link rel="stylesheet" type="text/css" href="css/main.css" />
  </head>
  
  <body>
  
  <body>
  	<%@ include file="header.jsp" %>
	
	<DIV id=container>
		<DIV class=reg_tit>
			<UL class=reg_tit_ul1>
				<LI><A title=用户注册 href="register.html">用户注册</A> 
				<LI><A class=current title=用户登录 href="login.html">用户登录</A> 
				</LI>
			</UL>
			<UL class=reg_tit_ul2><P></P></UL>
		</DIV>
		<DIV class=reg_bd_yj>
			<UL class=reg_bd_yj_ul1></UL>
			<UL class=reg_bd_yj_ul2></UL>
		</DIV>
		<DIV class="reg_bd u">
			<FORM id="login" name="login" action="loginCheck.html" method="post">
				<UL class=reg_bd_ul1_1>
					<LI>
						<P class=reg_bd_ul1_1_p1>类　　型：</P>
						<P class=reg_bd_ul1_1_p2>
							<select class=text-select name="userType">
								<option value="0"></option>
								<option value="1" <c:if test="${type == 1}">selected</c:if> >学生</option>
								<option value="2" <c:if test="${type == 2}">selected</c:if> >老师</option>
								<option value="3" <c:if test="${type == 3}">selected</c:if> >管理员</option>
							</select>
  						</P>
  					</LI>
					<LI>
						<P class=reg_bd_ul1_1_p1>用 户 名：</P>
						<P class=reg_bd_ul1_1_p2>
							<INPUT type="text" name="username" id="username" value="${username}" class=text-input1 onblur="this.style.borderColor='#B5B8C8'" onfocus="this.style.borderColor='#FFBA00'" maxLength=30> 
  						</P>
  					</LI>
					<LI>
						<P class=reg_bd_ul1_1_p1>密　　码：</P>
						<P class=reg_bd_ul1_1_p2>
							<INPUT type="password" name="password" id="password" value="${password}" class=text-input1 onblur="this.style.borderColor='#B5B8C8'" onfocus="this.style.borderColor='#FFBA00'" type=password maxLength=30>
						</P>
					</LI>
  					<LI>
						<P class=reg_bd_ul1_1_p1></P>
						<P class="reg_bd_ul1_1_p2 u">
							<INPUT class=submit_reg type=submit value=" 登  录 ">
						</P>
						<p class=error_message>${error_user}</p>
					</LI>
				</UL>
				<UL class=reg_bd_ul3></UL>
			</FORM>
		</DIV>
		<DIV class=reg_bd_yj>
			<UL class=reg_bd_yj_ul3></UL>
			<UL class=reg_bd_yj_ul4></UL>
		</DIV>
	</DIV>
	
  
	<%@ include file="footer.jsp" %>
  </body>
</html>
